Land of Lisp by Conrad Barski M.D

Land of Lisp by Conrad Barski M.D

Author:Conrad Barski M.D.
Language: eng
Format: mobi, epub
Tags: COMPUTERS / Programming Languages / LISP
Publisher: No Starch Press
Published: 2010-11-01T16:00:00+00:00


The message we sent across the socket was a Lisp string, but because of Lisp’s elegant stream-handling capabilities, we could send almost any standard Lisp data structure in the same way, without any extra effort!

Tidying Up After Ourselves

It’s crucial that we free up the resources we’ve created during this exercise. First, run the following command on both the client and the server to close the stream on both ends:

> (close my-stream) T

Next, run socket-server-close on the server to free up the port and disconnect the socket from it. If you don’t, port 4321 will be unusable until you reboot.

> (socket-server-close my-socket) NIL



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.